package com.mall.huohuo.openapi.controller.member;

import com.mall.huohuo.result.Result;
import com.mall.huohuo.service.member.domain.Member;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @author zycoding
 * @version AuthParam.java, v 0.1 2020-08-07 16:23 zycoding
 */
@RestController
@RequestMapping(MemberConstant.MEMBER_PREFIX)
public class MemberController {


    @GetMapping("/profile")
    public Result<Member> getProfile(){
        Member data = new Member();
        data.setAvatar("https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2751867638,2974984658&fm=26&gp=0.jpg")
        .setNickname("伪装者-明台")
        .setUsername("明台")
        .setLevelId("1")
        .setAgentcode("code")
        .setMobile("1857898692")
        .setTotalReward(new BigDecimal("33"))
        .setReward(new BigDecimal("222"))
        .setCredit(111);


        return Result.success(data);
    }
}
